package cn.usian.service.empserviceimpl;

import cn.usian.mapper.EmpMapper;
import cn.usian.pojo.Emp;
import cn.usian.service.EmpService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {
    @Resource
    private EmpMapper empMapper;
    @Override
    public List<Emp> findAll() {
        return empMapper.findAll();
    }

    @Override
    public void add(Emp emp) {
        empMapper.add(emp);
    }

    @Override
    public void update(Emp emp) {
        empMapper.update(emp);
    }

    @Override
    public void delete(Integer eid) {
        empMapper.delete(eid);
    }

    @Override
    public Emp findByEid(Integer eid) {
        return empMapper.findByEid(eid);
    }
}
